<template>
	<view>
		<u-cell-group>
			<u-cell :title="title + (item + 1) + '号楼'" :isLink="true" v-for="item in num" :key="item"
				@click="toHouseNumber(title + (item + 1) + '号楼')">
			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				num: null,
				title: null
			}
		},
		onLoad(options) {
			this.title = options.title
			this.num = Math.floor(Math.random() * 3) + 3
			console.log(this.num)

		},
		methods: {
			toHouseNumber(title) {
				uni.navigateTo({
					url: '/pkg-house/room-number/room-number?title=' + title
				})
			}
		}
	}
</script>

<style>

</style>
